package com.chat.user.controller;

import com.chat.base.common.result.JsonResult;
import com.chat.user.common.dto.entity.LoginWrapper;
import com.chat.user.common.dto.entity.RegisterWrapper;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin")
public class LoginController {
    //注入service模块

    //注册接口 V1
    @RequestMapping("/register")
    public JsonResult register(@RequestBody @Validated RegisterWrapper wapper){


        return JsonResult.success("注册成功");
    }

    //登陆接口 V1
    @RequestMapping("/login")
    public JsonResult login(@RequestBody @Validated LoginWrapper wapper){
        return  JsonResult.success("注册成功");
    }

}
